Skip to content

Conversation

@odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented Jun 13, 2025

What do these changes do?

When a project is blocked because the sharee has no access to some of its services, at the moment that user can't do much.

This PR gives the blocked user some information about the service owner. The only thing the frontend gets is the service owner's group id, which leads to his/her public information (username, email, full name). With this the sharee could contact the owner.

RequestAccess

Related issue/s

How to test

Dev-ops

@odeimaiz odeimaiz self-assigned this Jun 16, 2025
@odeimaiz odeimaiz added t:enhancement Improvement or request on an existing feature a:frontend issue affecting the front-end (area group) labels Jun 16, 2025
@odeimaiz odeimaiz added this to the Engage milestone Jun 16, 2025
@odeimaiz odeimaiz marked this pull request as ready for review June 16, 2025 11:18
@odeimaiz odeimaiz requested a review from Copilot June 16, 2025 11:22
@odeimaiz odeimaiz added the 🤖-automerge marks PR as ready to be merged for Mergify label Jun 16, 2025
@odeimaiz
Copy link
Member Author

@mergify queue

@mergify
Copy link
Contributor

mergify bot commented Jun 16, 2025

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at bba85b1

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds the ability for sharees to see which service owners they need to contact for access, and surfaces a “Request Apps Access” dialog in the dashboard when services are inaccessible.

  • Introduce a static checkShareePermissions helper and ShareePermissions widget for showing blocked sharees.
  • Add a new RequestServiceAccess widget to list app owners and contact info.
  • Refactor CollaboratorsStudy to use the new static method and inject a “Request Apps Access” button into ResourceDetails.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
services/static-webserver/client/source/class/osparc/share/ShareePermissions.js Added static permission check, popup UI, and data-structure docs
services/static-webserver/client/source/class/osparc/share/RequestServiceAccess.js New widget displaying app owners, emails, and apps needing access
services/static-webserver/client/source/class/osparc/share/CollaboratorsStudy.js Refactored to use checkShareePermissions instead of inline fetch
services/static-webserver/client/source/class/osparc/dashboard/ResourceDetails.js Inject “Request Apps Access” button into toolbar for blocked items
Comments suppressed due to low confidence (2)

services/static-webserver/client/source/class/osparc/share/RequestServiceAccess.js:1

  • Add unit tests for the RequestServiceAccess widget to verify layout rendering and behavior when provided with various service–access datasets.
/*

services/static-webserver/client/source/class/osparc/share/RequestServiceAccess.js:71

  • Calling group.getEmail() may return undefined or an empty string if the email isn't public; add a fallback or placeholder to handle missing emails gracefully.
const email = new qx.ui.basic.Label(group.getEmail()).set({

Copy link
Member

@sanderegg sanderegg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very nice!

Copy link
Member

@pcrespov pcrespov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok. so next step would be to add a button to notify the owner (when we have the notifications in mplace)

@sonarqubecloud
Copy link

@mergify mergify bot merged commit bba85b1 into ITISFoundation:master Jun 16, 2025
59 checks passed
@odeimaiz odeimaiz deleted the enh/request-services-access branch June 16, 2025 13:05
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Jun 20, 2025
92 tasks
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Aug 5, 2025
88 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🤖-automerge marks PR as ready to be merged for Mergify a:frontend issue affecting the front-end (area group) t:enhancement Improvement or request on an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants